<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="false" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="public/jsp/headerScript.jsp" />
<title>Game</title>
</head>
<body>
	<jsp:include page="public/jsp/header_nav.jsp" />
	<div id="content">
		<div id="featured-wrap">
			<table>
				<c:if test="${empty gamelist}">
					<article id="featured" class="clearfix">
						<div class="content-margin">
							<p>No Game yet!</p>
						</div>
					</article>
				</c:if>
				<c:forEach var="i" items="${gamelist}" varStatus="theCount">
					<div id="featured-wrap">
						<article id="featured" class="clearfix">
							<div class="content-margin">
								<input type="hidden" name="id" value="${i.id}" />
								<div class="image-block">
									<a href="redirect/game?id=${i.id}"> <img
										src="public/images/games/${i.image}" />
									</a>
									<p>released ${i.releaseDate}</p>
								</div>
								<div class="text-block">
									<h2>
										<a href="redirect/game?id=${i.id}">${i.name}</a>
									</h2>
									<p>${i.summary}</p>
									<div>
										<a href="redirect/game?id=${i.id}">more detail>>></a>
									</div>
								</div>
							</div>
						</article>
					</div>
				</c:forEach>
			</table>

			<c:if test="${not empty error }">
				<div class="error">${error}</div>
			</c:if>

		</div>
	</div>
	<jsp:include page="public/jsp/footer_nav.jsp" />
</body>
	</html>
</jsp:root>